
pub fn is_armstrong_number(num: u32) -> bool {
    let s = format!("{}", num);
    let l = s.len();
    let sum :u32  = s.chars().map(|c| c.to_digit(10).unwrap().pow(l as u32)).sum();
    println!("{}",sum);
    sum  == num
}